#include <boost/random/mersenne_twister.hpp>
#include <boost/random/discrete_distribution.hpp>
#include <iostream>

int main() {
    boost::mt19937 gen;
    double probabilities[10];

    int i;

    for (i=0; i<10; i++)
        probabilities[i] = 421;

    boost::random::discrete_distribution<> dist(probabilities);

    for (i=0; i<100000; i++)
        dist(gen);
}
